package com.demo.sso.common.constant;

/**
 * 常量设置
 *
 * @author fengjy
 * @date 2018-10-30 20:17
 */
public class ShiroSessionRedisConstant {

    /**
     * shirosession存储到redis中key的前缀
     */
    public static final String SHIROSESSION_REDIS_PREFIX = "SHIROSESSION_";
    /**
     * shirosession存储到redis哪个库中
     */
    public static final int SHIROSESSION_REDIS_DB = 0;
    /**
     * shirosession存储到redis中的过期时间
     */
    public static final int SHIROSESSION_REDIS_EXTIRETIME = 30*60;

    /**
     * token存到cookie中的key
     */
    public static final String SSOTOKEN_COOKIE_KEY = "SSOTOKENID";
    /**
     * token存到redis中的key前缀
     */
    public static final String SSOTOKEN_REDIS_PREFIX = "SSOTOKEN_";

}

